package com.sky.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sky.entity.DishFlavor;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DishFlavorMapper extends BaseMapper<DishFlavor> {
    @Delete("delete from dish_flavor where dish_id = #{id}")
    void deleteByDishId(Long id);
    void insertBatch(@Param("flavors") List<DishFlavor> dishFlavor);
}
